//
// Created by root on 4/29/17.
//

#include "../runner.h"

static void test_op_reverse() {
    assert_string_equal(interpret("(reverse '(1 2 3))"), "(3 2 1)");
}

//TODO
static void test_op_list_star() {
}

static void test_op_append() {
    assert_string_equal(interpret("(append '(1 2 3) '(4 5))"), "(1 2 3 4 5)");
}

static void test_op_list_length() {
    assert_string_equal(interpret("(length '(1 2 3))"), "3");
}

//TODO
static void test_op_assq() {
}

int main(int argc, char **argv) {
    const struct CMUnitTest tests[] = {
            //cmocka_unit_test(test_op_reverse),
            //cmocka_unit_test(test_op_list_star),
            //cmocka_unit_test(test_op_append),
            //cmocka_unit_test(test_op_list_length),
            //cmocka_unit_test(test_op_assq),
    };
    return cmocka_run_group_tests(tests, setup_scheme, teardown_scheme);
}
